﻿Imports System.Data
Imports System.Data.Odbc
Imports WSEntidades
Public Class TipostbFact
    Public Shared Function Build(ByVal dr As OdbcDataReader) As TipostbBE
        Dim tmpTipostb As TipostbBE = New TipostbBE()
        Try
            With tmpTipostb
                .Descripcion = convertDTFromDb.ConvertString(dr.Item("Descripcion"))
                .Id = convertDTFromDb.convertInt32(dr.Item("Id"))
                .IdBanco = convertDTFromDb.ConvertString(dr.Item("IdBanco"))
                .IdEmpresa = convertDTFromDb.ConvertShort(dr.Item("IdEmpresa"))
                .IdTB = convertDTFromDb.convertInt32(dr.Item("IdTB"))
                .Status = convertDTFromDb.ConvertString(dr.Item("Status"))
            End With
            Return tmpTipostb
        Catch ex As Exception
            Throw
        Finally
            tmpTipostb = Nothing
        End Try
    End Function
End Class
